#include "product.h"
#include "abstractfactory.h"

AProductX *Factory1::CreateProductX()
{
    return new ProductX1();
}

AProductY *Factory1::CreateProductY()
{
    return new ProductY1();
}

AProductX *Factory2::CreateProductX()
{
    return new ProductX2();
}

AProductY *Factory2::CreateProductY()
{
    return new ProductY2();
}


